<%--
  Created by IntelliJ IDEA.
  User: admin
  Date: 2020/4/26
  Time: 9:54
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
    <meta content="yes" name="apple-mobile-web-app-capable">
    <meta content="telephone=no" name="format-detection">
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>酱子-日本料理</title>
    <link type="text/css" rel="stylesheet" href="/static/css/index.css">
</head>
<body>
<div class="huiyuan_box color_1 fl">
    <div class="banner fl"><img src="/static/picture/u=1564308955,3173659325&fm=200&g.jpg"><b>
        <a href="javascript:;">积分：${user.jifen}</a></b></div>
    <div class="jifen_box fl">
        <ul>
            <c:if test="${goods.size>0}">
                <c:forEach items="${goods.list}" var="item">
                    <li>
                        <a href="jifenGoodInfo?id=${item.id}&uid=${user.id}"><b><img src="/static/picture/1111.jpg"></b>
                            <span class="fl span1">
                        <h1>${item.name}</h1>
                        <h2>${item.intor}</h2>
                        <p class="jifenshu">${item.money}积分</p>
                    </span>
                            <span class="fr jifen_right"><i>${item.realmoney}元</i>
                            <sub>已抢<fmt:formatNumber value="${item.usecount/item.total}" type="percent"></fmt:formatNumber></sub>
                            <strong>立即兑换</strong>
                        </span>
                        </a>
                    </li>
                </c:forEach>
            </c:if>
            <c:if test="${goods.size==0}">
                <li>
                    没有更多数据了
                </li>
            </c:if>
        </ul>
        <div class="clr"></div>
        <div class="page">
            <a href="/jifen/index?uid=${user.id}&pageNum=1&pageSize=2">首页</a>
            <a href="/jifen/index?uid=${user.id}&pageNum=${goods.pageNum-1}&pageSize=2">上一页</a>
            <a href="/jifen/index?uid=${user.id}&pageNum=${goods.pageNum+1}&pageSize=2">下一页</a>
            <a href="/jifen/index?uid=${user.id}&pageNum=${goods.pages}&pageSize=2">尾页</a>

        </div>
    </div>
</div>
<div class="bottom_center_box">
    <ul>
        <li><a href="javascript:;"><img src="/static/picture/sc_index_bottom_r1_c15.jpg"><span>会员</span></a></li>
        <li><a href="javascript:;"><img src="/static/picture/sc_index_bottom_r1_c6.jpg"><span>礼券包</span></a></li>
        <li><a href="javascript:;"><img src="/static/picture/sc_index_bottom_r1_c1.jpg"><span> 购物商城</span></a></li>
        <li><a href=""><img src="/static/picture/sc_index_bottom_r1_c16.jpg"><span>积分商城</span></a></li>
    </ul>
</div>
</body></html>
